﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    public struct PersonStruct
    {
       public string name;
       public string address;
       public int tel;
    }
    class Program
    {
      
        static void Main(string[] args)
        {
            PersonStruct P1 ;
            P1.name = "蔡学强";
            P1.address="14#421";
            P1.tel = 02066502;

            PersonStruct P2 = P1;
            P2.name = "DW";
            
            Console.WriteLine("  "+P1.name, "  " + P1.address, "  " + P1.tel);

            PersonClass P3 =new PersonClass();
            P3.name = "dwdw";
            P3.address = "14#421";
            P3.tel = "02066502";


            PersonClass P4 = P3;
            P4.name = "dwd";
            Console.WriteLine(P3.name,P3.tel,P3.address);
        }
    }
}
